<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let obj = {
            name : '孙悟空',
            age : 1800,
            jn1 : function(){
                document.write(`大闹天宫<div class="ff"><img src="../image/preview.gif"></div>`) 
            } 
        }
        for(let key in obj){
            document.write(key)
            document.write(`<br>${obj[key]}`)
        }
    </script>
</body>
</html>